﻿using System;

using Xc.DataAccess.Core;
using Xc.DataAccess.DataBase.DeviceInfos.Models;

namespace Xc.DataAccess.DataBase.DeviceInfos
{
    public interface IDbCommandInfoService
    {
        Result CancelCommand(Guid commandId);
        Result CancelCommands(string deviceInfoId);
        ResultData<CommandInfo[]> Gets(string deviceInfoId, int? days);
        ResultData<CommandInfo, SendState> Peek(string deviceId);

        /// <summary>
        /// 要添加的命令
        /// </summary>
        /// <param name="commandInfoAdd"></param>
        /// <returns></returns>
        Result Push(CommandInfoAdd commandInfoAdd);
        Result Update(CommandInfo commandInfo);
    }
}